package looptest;

public class AnimalTest {
    public static void main(String[] args) {
        Animal a = null ;
        a = new Phoenix("禽类","小鸟",515);
        System.out.println( a.toString() );
        a.eat("屎");

        a = new Eagle( "禽类","大鸟",51515);
        System.out.println( a.toString() );
        a.eat( "奥术大师多撒");

        a = new Bear("兽类","小狗",415 );
        System.out.println( a.toString() );
        a.eat( "阿是大师大师的");

        a = new Lion("兽类","答案案",515651);
        System.out.println( a.toString() );
        a.eat("年基本不" );
    }
}
